#ifndef DBUSCONNECTOR_H
#define DBUSCONNECTOR_H


#include <QString>
#include <QStringList>
#include <QApplication>

#ifdef Q_OS_UNIX
#include <QtDBus>
#endif

class DBusConnector : public
#ifdef Q_OS_UNIX
        QDBusAbstractAdaptor
#else
        QObject
#endif
{
    Q_OBJECT

#ifdef Q_OS_UNIX
    Q_CLASSINFO("D-Bus Interface", "DBus.Manager.MyDesktopServer")
    Q_PROPERTY(QStringList cbContent READ content WRITE setContent)
#endif

public:
    DBusConnector(QApplication *app = 0);


    Q_INVOKABLE QStringList content();
    Q_INVOKABLE void setContent(const QStringList &newContent);


signals:
    void shareObjects(QStringList );

};


#endif // DBUSCONNECTOR_H
